import {createRouter,createWebHistory} from 'vue-router'


export const menu_router = [
    {
        path:'/',
        name:'list',
        component:()=>import('../views/list/index.vue'),
        title:"列表"
    },
      {
        path:'/live',
        name:'live',
        component:()=>import('../views/live/index.vue'),
        title:"直播管理"
    }
]

const router = createRouter({
    history:createWebHistory(),
    routes:[
        {
            path:'/',
            name:'layout',
            component:()=>import('../views/layout/index.vue'),
            children:menu_router
        },
        {
            path:'/login',
            name:'login',
            component:()=>import('../views/login/index.vue')
        },
       
    ]
}) 

export default router